package com.example.footballsystem.service;

import com.example.footballsystem.entity.Team;
import com.example.footballsystem.mapper.TeamGameMapper;
import com.example.footballsystem.mapper.TeamMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Slf4j
@Service
public class TeamService {
    @Autowired
    TeamMapper teamMapper;
    public Boolean addTeam(Team team){
        return teamMapper.addTeam(team);
    }
    public Boolean deleteTeam(Team team){
        return teamMapper.deleteTeam(team.getTeamID());
    }
    public List<Team> getAllTeam(){
        return teamMapper.getAllTeam();
    }
}
